Send Mail
AutomatR.Office365.Activities.SendMail
The "Send Mail" activity in AutomatR is part of the Office 365 activities package, allowing automation processes to send emails using the Microsoft Office message API. This activity simplifies the task of sending emails within Office 365, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
To Address | Specifies the email addresses of the recipients in the "To" field when sending the email. It supports multiple recipients separated by commas. String variables containing the email addresses. |
Subject | Specifies the subject line for the email. String variables containing the subject. |
Body | Specifies the content of the email body. String variables containing the content. |
CC | Specifies the email addresses to mark as CC (Carbon Copy) when sending the email. It supports multiple recipients separated by commas. String variables containing the CC email addresses. |
BCC | Specifies the email addresses to mark as BCC (Blind Carbon Copy) when sending the email. It supports multiple recipients separated by commas. String variables containing the BCC email addresses. |
Attachments | Specifies the files to be attached to the email. The user can attach one or more files to the email. List variables containing the file paths. |
Body Types | Selects the desired format (text or HTML) for the email body. The available options are provided in a dropdown menu. Enumeration variables representing the body type. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Send Mail" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1. |
How to use:
- Drag and drop the "Send Mail" activity onto the workflow.
- Configure the properties by specifying the recipients, subject, body, body type, and other optional parameters.
- Optionally, configure the delay for synchronization purposes.
- Execute the workflow to send the specified email using Office 365.
Example: Consider an example where the "Send Mail" activity is used to send an email with attachments:
Send Mail:
To Address: "user@example.com,anotheruser@example.com"
Subject: "Automation Report"
Body: "Please find the attached report for your review."
Body Types: HTML
CC: "ccuser@example.com"
BCC: "bccuser@example.com"
Attachments: ["C:\Reports\Report.pdf", "C:\Images\Image.png"]
In this example, the activity sends an email to "user@example.com" and "anotheruser@example.com" with the subject "Automation Report." The email body is in HTML format, and "ccuser@example.com" and "bccuser@example.com" are marked as CC and BCC recipients, respectively. Two attachments, "Report.pdf" and "Image.png," are attached to the email.